{{include file="header_inc.html"}}
<body>
	<script type="text/javascript">
	<!--
		$(function() {
			$.formValidator.initConfig({
				formid : "myform",
				autotip : true,
				onerror : function(msg, obj) {
					window.top.art.dialog({
						content : msg,
						lock : true,
						width : '200',
						height : '50'
					}, function() {
						this.close();
						$(obj).focus();
					})
				}
			});
			$("#sitename").formValidator({
				onshow : "请输入来源名称",
				onfocus : "请输入来源名称"
			}).inputValidator({
				min : 1,
				onerror : "请输入来源名称"
			});
			$("#siteurl").formValidator({
				onshow : "请输入来源链接",
				onfocus : "请输入来源链接",
				empty : false
			}).inputValidator({
				onerror : "请输入来源链接"
			}).regexValidator({
				regexp : "^http://",
				onerror : "请以http://开头"
			});
		})
	//-->
	</script>

	<div class="pad_10">
		<form action="/extend/copyfrom/add/" method="post" name="myform"
			id="myform">
			<table width="100%" cellpadding="2" cellspacing="1"
				class="table_form">
				<tr>
					<th width="60">来源名称 :</th>
					<td><input type="text" name="info[sitename]" id="sitename"
						size="25"></td>
				</tr>
				<tr>
					<th>来源链接 :</th>
					<td><input type="text" name="info[siteurl]" id="siteurl"
						size="25"></td>
				</tr>
				<tr>
					<th>来源logo :</th>
					<td><input type="text" name="info[thumb]" id="thumb" value=""
						size="50" class="" /> <input type="button" class="button"
						onclick="javascript:upload('thumb_images', '附件上传','thumb')"
						value="上传图片"></td>
				</tr>
			</table>
			<input type="submit" name="dosubmit" id="dosubmit" class="dialog"
				value=" 提交 ">
		</form>
	</div>
</body>

{{include file="footer.html"}}
